//
//  CacheHrmDataModel.h
//  HBand
//
//  Created by 林瑞彬 on 2019/12/18.
//  Copyright © 2019 egoman. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "YZBytesTool.h"

//单独一个心率血压数据
@interface BluetoothOneHrmBpDataModel : NSObject

@property (nonatomic,assign) NSInteger hour;
@property (nonatomic,assign) NSInteger min;
@property (nonatomic,assign) NSInteger hrm;
@property (nonatomic,assign) NSInteger sbp;
@property (nonatomic,assign) NSInteger dbp;
@property (nonatomic,assign) NSInteger rsv1;
@property (nonatomic,assign) NSInteger rsv2;
@property (nonatomic,assign) NSInteger rsv3;

-(instancetype)initWithEightByteData:(NSData*)data;
@end

@interface HrmBpSortTempModel : NSObject
@property (nonatomic,assign) NSInteger sortNum;
@property (nonatomic,strong) NSArray <BluetoothOneHrmBpDataModel*> *hrmBpArr;
-(instancetype)initWithNum:(NSInteger)sortNum andData:(NSData*)data; //data
@end

//用于缓存 一天包含的心率血压数据
@interface BluetoothCacheHrmDataModel : NSObject
@property (nonatomic,strong) NSString *dateStr; //日期
@property (nonatomic,strong) NSArray <BluetoothOneHrmBpDataModel*> *hrmBpModelDataArray;//dateStr日期当太难包含的心率血压模型数据
-(instancetype)initWithDateStr:(NSString*)dateStr andDataModelArr:(NSArray*)dataModelArr;
@end

